<?php
	

defined('_JEXEC') or die();

class NBEventMapsControllerCSS extends NBEventMapsController
{
	
	function __construct()
	{
		parent::__construct();
	}

	
	function view()
	{
		JRequest::setVar( 'view', 'css' );
		JRequest::setVar( 'layout', 'form'  );
		JRequest::setVar('hidemainmenu', 0);

		parent::display();
	}

	
	function saveCss()
	{	
		$post	= JRequest::get('post');
		$model = $this->getModel('css');
		if ($model->store($post)) {
			$msg = JText::_( 'NBEVENTMAP_SAVED');
		} else {
			$msg = JText::_( 'NBEVENTMAP_SAVED_ERROR');
		}

		$link = 'index.php?option=com_nbeventmap&controller=css&task=view';
		$this->setRedirect($link, $msg);
	
	}

}
?>
